package com.treeman.navi.user;


import java.util.Date;





public class User  {

	private Long id;

	private String username;

	private String password;

	private String firstname;


	private String lastname;


	private Date born;
	

	/**
	 * Potwierdzenie hasła - walidacja, brak w bazie danych
	 */

	private String repeatedPassword;

	/**
	 * Adres email - wymagany, unikalny
	 */

	private String email;

	/**
	 * Data rejestracji
	 */

	private Date createdDate = new Date();

	/**
	 * Data ostatniego logowania
	 */

	private Date lastLoginDate;

	/**
	 * Data ostatniej aktywności
	 */

	private Date lastActive;

	/**
	 * Dodatkowe informacje o użytkowniku
	 */
	



	/*** Getters/Setters ***/

	public Long getId() {
		return id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRepeatedPassword() {
		return repeatedPassword;
	}

	public void setRepeatedPassword(String repeatedPassword) {
		this.repeatedPassword = repeatedPassword;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

	public Date getLastLoginDate() {
		return lastLoginDate;
	}

	public void setLastLoginDate(Date lastLoginDate) {
		this.lastLoginDate = lastLoginDate;
	}

	

	public Date getLastActive() {
		return lastActive;
	}

	public void setLastActive(Date lastActive) {
		this.lastActive = lastActive;
	}

	
	public String getFirstName() {
		
		return firstname;
	}

	public void setFirstName(String firstname) {
		this.firstname = firstname;
	}

	public String getLastName() {
		return lastname;
	}

	public void setLastName(String lastname) {
		this.lastname = lastname;
	}

	public Date getBirthday() {
		return born;
	}

	public void setBirthday(Date birthday) {
		this.born = birthday;
	}

	
	
}
